cmake_minimum_required(VERSION 2.8.3)
project(laser_sim)

set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "-std=c++11 -Wall -pthread")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g")


include_directories(
  ${PROJECT_SOURCE_DIR}/include
)

find_package(Ceres REQUIRED)
find_package(Pangolin REQUIRED)


# 不带标定的部分
add_executable(locat_node 
	src/locat_node.cpp)

target_link_libraries(locat_node ${catkin_LIBRARIES} ${CERES_LIBRARIES} ${Pangolin_LIBRARIES}) 

# 带标定优化算法的部分
add_executable(locat_And_Ext_node 
	src/locatAndOptExt.cpp)

target_link_libraries(locat_And_Ext_node ${catkin_LIBRARIES} ${CERES_LIBRARIES} ${Pangolin_LIBRARIES}) 

